// vuex 的内容同步到LocalStorage
import createPersistedState from 'vuex-persistedstate'

const LOCAL_STORAGE_KEY = 'vuex'

export const vuexLocalStorageSyncPlugin = createPersistedState({
  key: LOCAL_STORAGE_KEY
})

export function clearVuexLocalStorage () {
  localStorage.removeItem(LOCAL_STORAGE_KEY)
}
